// 查询列表接口
const getAuthorPage = (params) => {
    return $axios({
        //发送请求的路径
        url: '/author/page',
        //请求类型
        method: 'get',
        //携带的参数
        params
    })
}
/**
 *
 * 修改作者状态
 * @returns {*}
 */
const switchStatus = (id) => {
    return $axios({
        url: `/author/status`,
        method: 'put',
        params: { id }
    })
}

// 删除接口
const deleteAuthor = (ids) => {
    return $axios({
        //请求路径
        url: '/author',
        method: 'delete',
        params: { ids }
    })
}